package com.linewell.system.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * 菜单action类 对应数据库表：SYS_MENU_ACTIONS 
 */
@Entity
@Table(name = "SYS_MENU_ACTIONS")
@DynamicInsert(true)
@DynamicUpdate(true)
public class SysMenuActions implements Serializable {

	private static final long serialVersionUID = 1L;
	private Integer id; // 菜单编号
	private Integer menuId; // 菜单编号
	private String actionUrl; // action地址
	private String remark; // 说明
	
	@Id
	@Column(name = "ID",unique = true,nullable = false)
	@GeneratedValue(strategy = GenerationType.AUTO)		//自增长
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "MENU_ID")
	public Integer getMenuId() {
		return menuId;
	}

	public void setMenuId(Integer menuId) {
		this.menuId = menuId;
	}

	@NotEmpty
	@Column(name = "ACTION_URL")
	public String getActionUrl() {
		return actionUrl;
	}

	public void setActionUrl(String actionUrl) {
		this.actionUrl = actionUrl;
	}

	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
